import {
    BrowserRouter, //BrowserRouter太长，常常使用别名Router
    Route,
    Routes,
} from 'react-router-dom';
import HomePage from '../view/HomePage';
import Register from '../view/login/Register';
import ModifyPassw from '../view/login/ModifyPassw';
import Home from '../view/personal/Home';
import EditMessage from '../view/login/EditMessage';
import Login from '../view/login/Login';
import UpdateContent from '../componen/UpdateContent';
import Dynamic from '../view/dynamic/Dynamic';
import DetailMain from '../view/detail/DetailMain';
import OneClass from '../view/detail/ClassfityZ/OneClass';
import TwoClass from '../view/detail/ClassfityZ/TwoClass';
import FanClass from '../view/detail/ClassfityZ/FanClass';
import FuterClass from '../view/detail/ClassfityZ/FuterClass';
import ThreeClass from '../view/detail/ClassfityZ/ThreeClass';
import Search from '../componen/Search';
function MyRouter() {
    return (
        <div>
            <BrowserRouter>
                <Routes>
                    <Route path='/' element={<HomePage />} />
                    <Route path='/updata' element={<UpdateContent />} />
                    <Route path='/login' element={<Login />} />
                    <Route path='/register' element={<Register />} />
                    <Route path='/modifypassw' element={<ModifyPassw />} />
                    <Route path='/edit' element={<EditMessage />} />
                    <Route path='/home' element={<Home />} />
                    <Route path='/Dynamic/*' element={<Dynamic/>}></Route>

                      <Route path='/DetailMain' element={<DetailMain />} />
                        <Route path='/OneClass' element={<OneClass />} />
                        <Route path='/TwoClass' element={<TwoClass />} />
                        <Route path='/ThreeClass' element={<ThreeClass />} />
                        <Route path='/FanClass' element={<FanClass />} />
                        <Route path='/FuterClass' element={<FuterClass />} />
                        <Route path='/search' element={<Search />} />

                </Routes>
            </BrowserRouter>
        </div>
    );
}
export default MyRouter;